﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="allotherroutelist.aspx.cs" Inherits="LTJ.WebPage.UserManage.route.allotherroutelist" %>
<%@ Import Namespace="LTJ.Common" %>
<%@ Register TagPrefix="dyj" Namespace="LTJ.Control" Assembly="LTJ.Control" %>
<%@ Register TagPrefix="dyjU" TagName="ajaxcarrierlist" Src="~/datacontrol/ajaxcarrierlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxroutelist" Src="~/datacontrol/ajaxroutelinelist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxcorplist" Src="~/datacontrol/ajaxcorplist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxcorpuserlist" Src="~/datacontrol/ajaxcorpuserlist.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>其他公司线路管理</title>
    <link href="../css/comm.css" type="text/css" rel="stylesheet" />
    <link href="../css/lightview.css" type="text/css" rel="stylesheet" />
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/prototype.js" type="text/javascript"></script>
    <script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="../js/lightview.js" type="text/javascript"></script>
    <script src="../js/effects.js" type="text/javascript"></script>
    <script src="../js/ajaxhelper.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/common.js"></script>
    <script src="../js/jquery-choose.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Check(form, checked) {
            CheckByName(form, 'cid', checked);
            checkedEnabledButton(form, 'cid', 'setdel');
        }
        function formcheck() {
            if (event.keyCode == 13) {
                document.getElementById("check").focus();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="adnr">
	    <div class="adnrt">
		    <p class="mrt">起运港：<dyj:TextBox runat="server" ID="loadport" Width="100" MaxLength="20" onkeydown="formcheck()"></dyj:TextBox>&nbsp;</p>
            <p class="mrt">目的港：<dyj:TextBox runat="server" ID="destport" Width="100" MaxLength="20" onkeydown="formcheck()"></dyj:TextBox>&nbsp;</p>
            <div class="zi2 popxg mrt mtp" style="z-index:101">
                <p class="ip1" style="width:95px;" id="ajaxroutelinedatalist_str">航线</p>
                <input type="hidden" id="ajaxroutelinedatalist_value" name="ajaxroutelinedatalist_value"/>
                <span class="an"></span>
                <div class="cn" style="width: 246px;" id="ajaxroutelinedatalist_div">
                        <dyjU:ajaxroutelist runat="server" ID="aroutelist" />
                </div>
            </div>
            <div class="zi2 popxg mrt mtp" style="z-index:101">
                <p class="ip1" id="ajaxcarrierlist_str" style="width:95px;">船公司</p>
                <input type="hidden" id="ajaxcarrierlist_value" name="ajaxcarrierlist_value"/>
				<span class="an"></span>
				<div class="cn" style="width:246px;" id="ajaxcarrierlist_div">
                    <dyjU:ajaxcarrierlist runat="server" ID="acarrlist" />
				</div>
            </div>
            <div class="zi2 popxg mrt mtp" style="z-index:101">
				<p class="ip1" id="ajaxcorpdatalist_str" style="width:95px">报价公司</p>
                <input type="hidden" id="ajaxcorpdatalist_value" name="ajaxcorpdatalist_value" value=""/>
				<span class="an"></span>
				<div class="cn" style="width:400px;" id="ajaxcorpdatalist_div">
                    <dyjU:ajaxcorplist runat="server" ID="acorplist" />
				</div>
			</div>
            <p><dyj:Button runat="server" ID="check" Text="查询" ButtonImgUrl="../images/search.gif"/></p>
	    </div>
	    <div class="adnr3">
        <dyj:datagrid id="DataGrid1" runat="server" PageSize="10">
	       <Columns>
            <asp:TemplateColumn HeaderText="操作">
              <ItemTemplate>
                <a class="l_blue lightview" rel="iframe" title=" :: :: width:600,height:480" href="corproutedetail.aspx?rid=<%#DataBinder.Eval(Container, "DataItem.id")%>">详情</a>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="routenum" HeaderText="线路编号"></asp:BoundColumn>
            <asp:BoundColumn DataField="loadename" HeaderText="起运港"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="目的港">
              <ItemTemplate>
                <div class="hdiv" style="z-index:<%# 100-Container.ItemIndex %>;">
					<p class="tit"><%# DataBinder.Eval(Container, "DataItem.destename")%></p>
					<p class="hdv" style="width:120px;">
                        <span>所属航线:<%#DataBinder.Eval(Container, "DataItem.routeseaname")%></span>
                        <span>所属国家:<%#DataBinder.Eval(Container, "DataItem.countryname")%></span>
                        <span>中文名:<%#DataBinder.Eval(Container, "DataItem.destname")%></span>
                        <span>英文名:<%#DataBinder.Eval(Container, "DataItem.destename")%></span>
					</p>
				</div>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="船司">
              <ItemTemplate>
              <%# DataBinder.Eval(Container, "DataItem.routeid").ToString()=="0"?DataBinder.Eval(Container, "DataItem.bname"):DataBinder.Eval(Container, "DataItem.routebname")%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="中转港">
              <ItemTemplate>
              <%# DataBinder.Eval(Container, "DataItem.tranename").ToString() == "" ? "直航" : DataBinder.Eval(Container, "DataItem.tranename")%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="pier" HeaderText="码头"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="20GP">
              <ItemTemplate>
              <%# GetSeaPrce(((System.Data.DataRowView)Container.DataItem).Row, "20GP")%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="40GP">
              <ItemTemplate>
              <%# GetSeaPrce(((System.Data.DataRowView)Container.DataItem).Row, "40GP")%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="40HQ">
              <ItemTemplate>
              <%# GetSeaPrce(((System.Data.DataRowView)Container.DataItem).Row, "40HQ")%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="附加费用">
              <ItemTemplate>
                <div class="hdiv" style="z-index:<%# 100-Container.ItemIndex %>;">
					<p class="tit">AMS/ENS:<%# DataBinder.Eval(Container, "DataItem.AMS_ENS").ToString() == "" ? "0" : DataBinder.Eval(Container, "DataItem.AMS_ENS").ToString()%></p>
					<p class="hdv" style="width:120px;">
                        <span>文件费:<%#GetOtherPrice(DataBinder.Eval(Container, "DataItem.DOC").ToString(), 1)%></span>
						<span>AMS/ENS:<%#GetOtherPrice(DataBinder.Eval(Container, "DataItem.AMS_ENS").ToString(), 1)%></span>
						<span>THC:<%#GetOtherPrice(DataBinder.Eval(Container, "DataItem.THC").ToString(), 1)%></span>
						<span>箱单:<%#GetOtherPrice(DataBinder.Eval(Container, "DataItem.XSF").ToString(), 1)%></span>
					</p>
				</div>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="schbegin" HeaderText="截关"></asp:BoundColumn>
            <asp:BoundColumn DataField="schend" HeaderText="开船"></asp:BoundColumn>
            <asp:BoundColumn DataField="range" HeaderText="行程"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="有效期">
              <ItemTemplate>
              <%# Utils.GetStandardDate(DataBinder.Eval(Container, "DataItem.validbegin").ToString())%> - <%# Utils.GetStandardDate(DataBinder.Eval(Container, "DataItem.validend").ToString())%>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="cname" HeaderText="报价提供"></asp:BoundColumn>
          </Columns>
	    </dyj:datagrid>
	    </div>
	    <i class="tp"></i><i class="bt"></i>
    </div>
    <button id="reclick" runat="server" style="display:none"></button>
    </form>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        choose("popxg");
        jQuery(".hdiv").find(".tit").hover(function () {
            var hdv = jQuery(this).next();
            if (hdv.is(':visible')) {
                hdv.slideUp();
            } else {
                hdv.slideDown();
            }
        });
    });
</script>
</html>